﻿using GameCreator.Core;
using PixelCrushers.DialogueSystem;
using UnityEngine;

namespace Gp.GCX {
    public class ShowTextAc : IAction {
        public string content;
        
        public override bool InstantExecute(GameObject target, IAction[] actions, int index) {
            DialogueManager.ShowAlert(content,content.Length / 4f);
            Debug.Log("执行简易文本");
            return true;
        }
        
#if UNITY_EDITOR
        public new static string NAME = "Gp/其他/展示简易文本";
        private const string NODE_TITLE = "添加文本";
#endif
    }
}